package org.foreveross.jbpm.ws.client;

import org.foreveross.jbpm.ws.WebServiceApplication_Service;

public class WSClient {

	private static WebServiceApplication_Service service;
	
	public static WebServiceApplication_Service getWebServiceApplication_Service(){
		if(service==null){
			service  = new WebServiceApplication_Service();
		}
		return service;
	}
	
	public static String getTaskUser(String user){
		return getWebServiceApplication_Service().getWebServiceApplicationImplPort().getTaskUser(user);
	}
	
	public static void logMessage(String user,String message){
		getWebServiceApplication_Service().getWebServiceApplicationImplPort().logMessage(user, message);
	}
	
	public static void main(String args[]){
		System.out.println(WSClient.getTaskUser("lingen"));
	}
}
